package cn.wolfcode.crm.domain;

import cn.wolfcode.crm.util.Constans;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Setter
@Getter
public class Account {
    private Long id;

    //交易密码
    private String tradePassword;

    //账户可用余额
    private BigDecimal usableAmount = Constans.ZERO;

    //账户冻结金额
    private BigDecimal freezedAmount = Constans.ZERO;

    //账户待收利息
    private BigDecimal unReceiveInterest = Constans.ZERO;

    //账户待收本金
    private BigDecimal unReceivePrincipal = Constans.ZERO;

    //账户待还金额
    private BigDecimal unReturnAmount = Constans.ZERO;

    //账户剩余授信额度
    private BigDecimal remainBorrowLimit = Constans.BORROWLIMIT;

    //账户授信额度
    private BigDecimal borrowLimitAmount = Constans.BORROWLIMIT;

    //账户总额
    private BigDecimal totalAmount = usableAmount.add(freezedAmount).add(unReceivePrincipal);
}
